package beikai.com.assistant.controller;


import beikai.com.assistant.common.domain.params.VillageDetailParams;
import beikai.com.assistant.service.IVillageDetailService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 小区杂费名目 前端控制器
 * </p>
 *
 * @author beikai
 * @since 2021-12-19
 */
@RestController
@RequestMapping("/user/village-detail-model")
public class VillageDetailController {

    @Autowired
    private IVillageDetailService villageDetailService;

    @PostMapping("/addDetail")
    public JSONObject addDetail(@RequestBody VillageDetailParams villageDetailParams){
        return villageDetailService.addDetail(villageDetailParams);
    }

}

